package com.fzj.example.design.responsibilitychain;


/**
* @Description 处理者1
* @Author  fanzj
* @Date   2020/5/10 6:42 下午
* @Param  
* @Return      
* @Exception   
* 
*/
public class ConcreteHandler1 extends Handler {
    @Override
    public void handlerRequest(String request){
        if(request.equals("one")){
            System.out.println("ConcreteHandler1 doing task");
        }else {
            if(getNext()!=null){
                getNext().handlerRequest(request);
            }else{
                System.out.println("no request");
            }
        }

    }
}
